import {
  get,
  post,
  //postForm,
  del,
} from "@/utils/http";
const packageName = `/back-api`;
/*
获取告警模板设备列表
**/
export function getModelAlarmDeviceList(params) {
  return get(`${packageName}/modelAlarmDevice/getModelAlarmDeviceList`, params);
}
/*
获取告警模板设备
**/
export function getModelAlarmDevice(params) {
  return get(`${packageName}/modelAlarmDevice/getModelAlarmDevice`, params);
}
/*
保存告警模板设备
**/
export function saveModelAlarmDevice(params) {
  return post(`${packageName}/modelAlarmDevice/saveModelAlarmDevice`, params);
}
/*
删除告警模板设备
**/
export function delModelAlarmDevice(params) {
  return del(`${packageName}/modelAlarmDevice/delModelAlarmDevice`, params);
}
/*
获取全部告警模板列表(公司id)
**/
export function getModelAlarmSettingss(params) {
  return get(`${packageName}/modelAlarmGroup/getModelAlarmSettingss`, params);
}
/*
删除告警模板设备
**/
export function delModelAlarmGroup(params) {
  return del(`${packageName}/modelAlarmGroup/delModelAlarmGroup`, params);
}
/*
获取告警模板分组
**/
export function getModelAlarmGroup(params) {
  return get(`${packageName}/modelAlarmGroup/getModelAlarmGroup`, params);
}
/*
获取告警模板分组列表
**/
export function getModelAlarmGroupList(params) {
  return get(`${packageName}/modelAlarmGroup/getModelAlarmGroupList`, params);
}
/*
保存告警模板分组
**/
export function saveModelAlarmGroup(params) {
  return post(`${packageName}/modelAlarmGroup/saveModelAlarmGroup`, params);
}
/*
删除告警模板
**/
export function delModelAlarmSettings(params) {
  return del(`${packageName}/modelAlarmGroup/delModelAlarmSettings`, params);
}
/*
获取告警模板
**/
export function getModelAlarmSettings(params) {
  return get(`${packageName}/modelAlarmGroup/getModelAlarmSettings`, params);
}
/*
获取告警模板明细(模板id)
**/
export function getModelAlarmSettingsDetail(params) {
  return get(
    `${packageName}/modelAlarmGroup/getModelAlarmSettingsDetail`,
    params
  );
}
/*
获取告警模板列表**/
export function getModelAlarmSettingsList(params) {
  return get(
    `${packageName}/modelAlarmGroup/getModelAlarmSettingsList`,
    params
  );
}
/** 
保存告警模板**/
export function saveModelAlarmSettings(params) {
  return post(`${packageName}/modelAlarmGroup/saveModelAlarmSettings`, params);
}
/** 
保存告警模板明细**/
export function saveModelAlarmSettingsDetail(params) {
  return post(
    `${packageName}/modelAlarmGroup/saveModelAlarmSettingsDetail`,
    params
  );
}
//删除设备报警阈值设置
export function delModelAlarmDetail(params) {
  return del(
    `${packageName}/modelAlarmDetail/delModelAlarmDetail`,
    params
  );
}

//获取设备报警阈值设置
export function getModelAlarmDetail(params) {
  return get(
    `${packageName}/modelAlarmDetail/getModelAlarmDetail`,
    params
  );
}
//获取设备报警阈值设置列表
export function getModelAlarmDetailList(params) {
  return get(
    `${packageName}/modelAlarmDetail/getModelAlarmDetailList`,
    params
  );
}
//保存设备报警阈值设置
export function saveModelAlarmDetail(params) {
  return post(
    `${packageName}/modelAlarmDetail/saveModelAlarmDetail`,
    params
  );
}
//获取全部设备分组
export function getDeviceGroups(params) {
  return get(
    `${packageName}/deviceGroup/getDeviceGroups`,
    params
  );
}